package com.hq.controller;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author hanq
 * 异常时，进行的熔断处理
 */
@Component
public class FallBackFeign implements  FeignConsumerClient{

    @Override
    public String hello() {

        Map<String,Object> map = new HashMap<String,Object>();

        map.put("callback","fail");

        return map.toString();
    }
}
